﻿using System;
using Dos.ORM;

namespace WebApi.Models.JieShun.Entitys
{
    /// <summary>
    /// 实体类caroutE。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Table("caroutM")]
    [Serializable]
    public partial class caroutE : Entity
    {
        #region Model
        private int _FID;
        private string _parkId;
        private string _outRecordId;
        private string _outDeviceId;
        private string _outDeviceName;
        private string _inDeviceId;
        private string _inDeviceName;
        private string _inRecordId;
        private DateTime _inTime;
        private DateTime _outTime;
        private string _inImage;
        private string _outImage;
        private string _plateNumber;
        private string _plateColor;
        private string _stationOperator;
        private int _chargeTotal;
        private int _discountAmount;
        private int _charge;
        private int? _setmealNo;
        private string _sealName;
        private string _parkEventType;
        private DateTime _createTime;
        private string _remark;

        /// <summary>
        /// 主键
        /// </summary>
        [Field("FID")]
        public int FID
        {
            get { return _FID; }
            set
            {
                this.OnPropertyValueChange("FID");
                this._FID = value;
            }
        }
        /// <summary>
        /// 车场ID
        /// </summary>
        [Field("parkId")]
        public string parkId
        {
            get { return _parkId; }
            set
            {
                this.OnPropertyValueChange("parkId");
                this._parkId = value;
            }
        }
        /// <summary>
        /// 出场记录唯一标识
        /// </summary>
        [Field("outRecordId")]
        public string outRecordId
        {
            get { return _outRecordId; }
            set
            {
                this.OnPropertyValueChange("outRecordId");
                this._outRecordId = value;
            }
        }
        /// <summary>
        /// 出场设备唯一标识(同deviceGuid)
        /// </summary>
        [Field("outDeviceId")]
        public string outDeviceId
        {
            get { return _outDeviceId; }
            set
            {
                this.OnPropertyValueChange("outDeviceId");
                this._outDeviceId = value;
            }
        }
        /// <summary>
        /// 出场设备名称(通道名称)
        /// </summary>
        [Field("outDeviceName")]
        public string outDeviceName
        {
            get { return _outDeviceName; }
            set
            {
                this.OnPropertyValueChange("outDeviceName");
                this._outDeviceName = value;
            }
        }
        /// <summary>
        /// 入场设备唯一标识(同deviceGuid)
        /// </summary>
        [Field("inDeviceId")]
        public string inDeviceId
        {
            get { return _inDeviceId; }
            set
            {
                this.OnPropertyValueChange("inDeviceId");
                this._inDeviceId = value;
            }
        }
        /// <summary>
        /// 设备名称可以定义为通道名
        /// </summary>
        [Field("inDeviceName")]
        public string inDeviceName
        {
            get { return _inDeviceName; }
            set
            {
                this.OnPropertyValueChange("inDeviceName");
                this._inDeviceName = value;
            }
        }
        /// <summary>
        /// 入场记录唯一标识
        /// </summary>
        [Field("inRecordId")]
        public string inRecordId
        {
            get { return _inRecordId; }
            set
            {
                this.OnPropertyValueChange("inRecordId");
                this._inRecordId = value;
            }
        }
        /// <summary>
        /// 入场时间
        /// </summary>
        [Field("inTime")]
        public DateTime inTime
        {
            get { return _inTime; }
            set
            {
                this.OnPropertyValueChange("inTime");
                this._inTime = value;
            }
        }
        /// <summary>
        /// 出场识别时间
        /// </summary>
        [Field("outTime")]
        public DateTime outTime
        {
            get { return _outTime; }
            set
            {
                this.OnPropertyValueChange("outTime");
                this._outTime = value;
            }
        }
        /// <summary>
        /// 入场照片  图片url地址
        /// </summary>
        [Field("inImage")]
        public string inImage
        {
            get { return _inImage; }
            set
            {
                this.OnPropertyValueChange("inImage");
                this._inImage = value;
            }
        }
        /// <summary>
        /// 出场照片  图片url地址
        /// </summary>
        [Field("outImage")]
        public string outImage
        {
            get { return _outImage; }
            set
            {
                this.OnPropertyValueChange("outImage");
                this._outImage = value;
            }
        }
        /// <summary>
        /// 车牌号
        /// </summary>
        [Field("plateNumber")]
        public string plateNumber
        {
            get { return _plateNumber; }
            set
            {
                this.OnPropertyValueChange("plateNumber");
                this._plateNumber = value;
            }
        }
        /// <summary>
        /// 车牌颜色
        /// </summary>
        [Field("plateColor")]
        public string plateColor
        {
            get { return _plateColor; }
            set
            {
                this.OnPropertyValueChange("plateColor");
                this._plateColor = value;
            }
        }
        /// <summary>
        /// 出入场控制操作员
        /// </summary>
        [Field("stationOperator")]
        public string stationOperator
        {
            get { return _stationOperator; }
            set
            {
                this.OnPropertyValueChange("stationOperator");
                this._stationOperator = value;
            }
        }
        /// <summary>
        /// 单位分，车辆停车应收金额
        /// </summary>
        [Field("chargeTotal")]
        public int chargeTotal
        {
            get { return _chargeTotal; }
            set
            {
                this.OnPropertyValueChange("chargeTotal");
                this._chargeTotal = value;
            }
        }
        /// <summary>
        /// 单位分，打折金额
        /// </summary>
        [Field("discountAmount")]
        public int discountAmount
        {
            get { return _discountAmount; }
            set
            {
                this.OnPropertyValueChange("discountAmount");
                this._discountAmount = value;
            }
        }
        /// <summary>
        /// 单位分，实际缴费金额
        /// </summary>
        [Field("charge")]
        public int charge
        {
            get { return _charge; }
            set
            {
                this.OnPropertyValueChange("charge");
                this._charge = value;
            }
        }
        /// <summary>
        /// 套餐编号
        /// </summary>
        [Field("setmealNo")]
        public int? setmealNo
        {
            get { return _setmealNo; }
            set
            {
                this.OnPropertyValueChange("setmealNo");
                this._setmealNo = value;
            }
        }
        /// <summary>
        /// 套餐名称
        /// </summary>
        [Field("sealName")]
        public string sealName
        {
            get { return _sealName; }
            set
            {
                this.OnPropertyValueChange("sealName");
                this._sealName = value;
            }
        }
        /// <summary>
        /// 车场事件类型
        /// </summary>
        [Field("parkEventType")]
        public string parkEventType
        {
            get { return _parkEventType; }
            set
            {
                this.OnPropertyValueChange("parkEventType");
                this._parkEventType = value;
            }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Field("createTime")]
        public DateTime createTime
        {
            get { return _createTime; }
            set
            {
                this.OnPropertyValueChange("createTime");
                this._createTime = value;
            }
        }
        /// <summary>
        /// 备注
        /// </summary>
        [Field("remark")]
        public string remark
        {
            get { return _remark; }
            set
            {
                this.OnPropertyValueChange("remark");
                this._remark = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.FID,
            };
        }
        /// <summary>
        /// 获取实体中的标识列
        /// </summary>
        public override Field GetIdentityField()
        {
            return _.FID;
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.FID,
                _.parkId,
                _.outRecordId,
                _.outDeviceId,
                _.outDeviceName,
                _.inDeviceId,
                _.inDeviceName,
                _.inRecordId,
                _.inTime,
                _.outTime,
                _.inImage,
                _.outImage,
                _.plateNumber,
                _.plateColor,
                _.stationOperator,
                _.chargeTotal,
                _.discountAmount,
                _.charge,
                _.setmealNo,
                _.sealName,
                _.parkEventType,
                _.createTime,
                _.remark,
            };
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._FID,
                this._parkId,
                this._outRecordId,
                this._outDeviceId,
                this._outDeviceName,
                this._inDeviceId,
                this._inDeviceName,
                this._inRecordId,
                this._inTime,
                this._outTime,
                this._inImage,
                this._outImage,
                this._plateNumber,
                this._plateColor,
                this._stationOperator,
                this._chargeTotal,
                this._discountAmount,
                this._charge,
                this._setmealNo,
                this._sealName,
                this._parkEventType,
                this._createTime,
                this._remark,
            };
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "caroutM");
            /// <summary>
			/// 主键
			/// </summary>
			public readonly static Field FID = new Field("FID", "caroutM", "主键");
            /// <summary>
			/// 车场ID
			/// </summary>
			public readonly static Field parkId = new Field("parkId", "caroutM", "车场ID");
            /// <summary>
			/// 出场记录唯一标识
			/// </summary>
			public readonly static Field outRecordId = new Field("outRecordId", "caroutM", "出场记录唯一标识");
            /// <summary>
			/// 出场设备唯一标识(同deviceGuid)
			/// </summary>
			public readonly static Field outDeviceId = new Field("outDeviceId", "caroutM", "出场设备唯一标识(同deviceGuid)");
            /// <summary>
			/// 出场设备名称(通道名称)
			/// </summary>
			public readonly static Field outDeviceName = new Field("outDeviceName", "caroutM", "出场设备名称(通道名称)");
            /// <summary>
			/// 入场设备唯一标识(同deviceGuid)
			/// </summary>
			public readonly static Field inDeviceId = new Field("inDeviceId", "caroutM", "入场设备唯一标识(同deviceGuid)");
            /// <summary>
			/// 设备名称可以定义为通道名
			/// </summary>
			public readonly static Field inDeviceName = new Field("inDeviceName", "caroutM", "设备名称可以定义为通道名");
            /// <summary>
			/// 入场记录唯一标识
			/// </summary>
			public readonly static Field inRecordId = new Field("inRecordId", "caroutM", "入场记录唯一标识");
            /// <summary>
			/// 入场时间
			/// </summary>
			public readonly static Field inTime = new Field("inTime", "caroutM", "入场时间");
            /// <summary>
			/// 出场识别时间
			/// </summary>
			public readonly static Field outTime = new Field("outTime", "caroutM", "出场识别时间");
            /// <summary>
			/// 入场照片  图片url地址
			/// </summary>
			public readonly static Field inImage = new Field("inImage", "caroutM", "入场照片  图片url地址");
            /// <summary>
			/// 出场照片  图片url地址
			/// </summary>
			public readonly static Field outImage = new Field("outImage", "caroutM", "出场照片  图片url地址");
            /// <summary>
			/// 车牌号
			/// </summary>
			public readonly static Field plateNumber = new Field("plateNumber", "caroutM", "车牌号");
            /// <summary>
			/// 车牌颜色
			/// </summary>
			public readonly static Field plateColor = new Field("plateColor", "caroutM", "车牌颜色");
            /// <summary>
			/// 出入场控制操作员
			/// </summary>
			public readonly static Field stationOperator = new Field("stationOperator", "caroutM", "出入场控制操作员");
            /// <summary>
			/// 单位分，车辆停车应收金额
			/// </summary>
			public readonly static Field chargeTotal = new Field("chargeTotal", "caroutM", "单位分，车辆停车应收金额");
            /// <summary>
			/// 单位分，打折金额
			/// </summary>
			public readonly static Field discountAmount = new Field("discountAmount", "caroutM", "单位分，打折金额");
            /// <summary>
			/// 单位分，实际缴费金额
			/// </summary>
			public readonly static Field charge = new Field("charge", "caroutM", "单位分，实际缴费金额");
            /// <summary>
			/// 套餐编号
			/// </summary>
			public readonly static Field setmealNo = new Field("setmealNo", "caroutM", "套餐编号");
            /// <summary>
			/// 套餐名称
			/// </summary>
			public readonly static Field sealName = new Field("sealName", "caroutM", "套餐名称");
            /// <summary>
			/// 车场事件类型
			/// </summary>
			public readonly static Field parkEventType = new Field("parkEventType", "caroutM", "车场事件类型");
            /// <summary>
			/// 创建时间
			/// </summary>
			public readonly static Field createTime = new Field("createTime", "caroutM", "创建时间");
            /// <summary>
			/// 备注
			/// </summary>
			public readonly static Field remark = new Field("remark", "caroutM", "备注");
        }
        #endregion
    }
}